package com.hdj.chapter6.demo2;

/**
 * @description
 * @auther hdj
 * @date 2017/12/13.
 */
public class Wrapper implements Targetable {

    private Source source;

    public Wrapper(Source source){
        super();
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("this is Targetable method2");
    }
}
